package com.shiyi.crawler;

import org.springframework.stereotype.Service;

@Service
// 具体爬虫类型A的实现
class CrawlerTypeA implements CrawlerStrategy {
    public void execute() {
        System.out.println("执行爬虫类型A");
        // 爬虫类型A的具体实现代码
    }

    public boolean accept(String type){
        return "zhihu".equals(type);
    }
}